import request from '@/utils/request';


export default {
    findHoPay(pageym,pagesize,name) {
        return request({
            url: `http://localhost/api/fina/hopay/findhopay?pageym=${pageym}&pagesize=${pagesize}&cardid=${name}&patiname=${name}`,
            method: 'post'
        });
    },
  
    deleteHopay(id){
        return request({
            url: `http://localhost/api/fina/hopay/delHopay?id=${id}`,
            method: 'post'
        });
    },
    getListDto(){
        return request({
            url: `http://localhost/api/fina/hopay/getListDto`,
            method: 'post'
        });
    },
    addHopay(data) {
        return request({
            url: `http://localhost/api/fina/hopay/addHopay`,
            method: 'post',
            data
        });
    },
    upHopayui(id){
        return request({
            url: `http://localhost/api/fina/hopay/upHopayui?id=${id}`,
            method: 'post',      
        });
    },
    upHopay(data) {
        return request({
            url: `http://localhost/api/fina/hopay/upHopay`,
            method: 'post',
            data
        });
    },
}